import {service} from "@/config/request.js";
 
 
export function categoryPage(query) {
	return service({
		path: '/pigx-mall/mallProductCategory/page',
		method: 'get',
		params: query,
	});
} 
// 获取首页列表
export function mallProductIndexPage(query) {
	return service({
		path: '/pigx-mall/app/mallProduct/indexPage',
		method: 'get', 
	});
} 
// 获取搜索历史记录


export function productSearchContent(query) {
	return service({
		path: '/pigx-mall/app/mallProduct/productSearchContent',
		method: 'get', 
	});
} 

// 根据用户Id获取用户信息
export function getUserInfo(query) { 
	return service({
		path: `/admin/user/details/${query.userId}`,
		method: 'get', 
	});
} 
export function mallProductCategory(query) {
	console.log(query)
	return service({
		path: `/pigx-mall/mallProductCategory/page`,
		method: 'get',
		params: query,
	});
} 
// 判断信用额度是不是0
export function jcCustom(query) { 
	return service({
		path: `/customer/jcCustom/info/${query.customId}`,
		method: 'get', 
	});
} 
// 判断信用额度是不是0
export function jcCustomContacts(query) { 
	return service({
		path: `/customer/jcCustomContacts/${query.userId}`,
		method: 'get', 
	});
} 



// 新增拍照下单
export function mallOrderPotoSave(query) { 
	return service({
		path: `/pigx-mall/mallOrderPoto/save`,
		method: 'post',
		 params:query
	});
} 

export function listMallOrderPotoPageMall(query) { 
	return service({
		path: `/pigx-mall/mallOrderPoto/listMallOrderPotoPageMall`,
		method: 'get',
		 params:query
	});
} 
export function getById(query) { 
	return service({
		path: `/pigx-mall/mallOrderPoto/getById/${query.id}`,
		method: 'get'
	});
}  
